﻿using System.Runtime.Serialization;

namespace UtfprLibrary.Communication {
    /// <summary>
    /// TODO
    /// </summary>
    [DataContract]
    public class Message {
        /// <summary>
        /// TODO
        /// </summary>
        /// <param name="type"></param>
        /// <param name="title"></param>
        /// <param name="content"></param>
        public Message(MessageTypeEnum type, string title, string content) {
            this._type = type;
            this._title = title;
            this._content = content;
        }

        private string _content;
        /// <summary>
        /// TODO
        /// </summary>
        [DataMember]
        public string Content {
            get { return _content; }
            set { _content = value; }
        }

        private string _title;
        /// <summary>
        /// TODO
        /// </summary>
        [DataMember]
        public string Title {
            get { return _title; }
            set { _title = value; }
        }

        private MessageTypeEnum _type;
        /// <summary>
        /// TODO
        /// </summary>
        [DataMember]
        public MessageTypeEnum Type {
            get { return _type; }
            set { _type = value; }
        }
    }
}
